<template>
  <div>
    <!--点后弹出弹窗-->
    <el-form :inline="true">
      <el-form-item>
        <el-button @click="showConfirmCodeDialog">删除选中</el-button>
      </el-form-item>
    </el-form>
    <!--弹出的弹窗内容-->
    <el-dialog title="删除账号" :visible.sync="dialogVisible" center width="20%">
      <div style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
        <el-form :inline="true">
          <el-form-item>
            <el-input v-model="secureCode" placeholder="请输入安全验证码" clearable></el-input>
          </el-form-item>
        </el-form>
        <p style="color: #f00;">提示: 删除账号需要填写安全验证码, 防止出现手误删除的情况, 如果不知道什么是安全验证码, 请联系公司管理员!</p>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="confirmDelete()">确定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //弹出输入框
      dialogVisible: false,
      secureCode: "",
    }
  },
  methods: {
    //弹窗输入对话框
    showConfirmCodeDialog() {
      this.dialogVisible = true;//显示弹窗
    },
    confirmDelete() {
      console.log("调用了确定删除按钮")
    },
  }
}
</script>
